import request from './main.js'
import getrequest from './get.js'
import formrequest from './form.js'
import uploadFile from './main.js'
import multipartrequest from './multipart.js'
import {
	baseUrl
} from '../config'
module.exports = {
	//登录
	login: (postData) => {
		return request('api/user/login', postData)
	},
	//首页
	Index: (postData) => {
		return request('api/Index/index', postData)
	},
	//客户列表
	CustomerList: (postData) => {
		return request('api/Index/customerList', postData)
	},
	//供应商列表
	SupplierList: (postData) => {
		return request('api/Index/supplierList', postData)
	},
	//董事长信箱
	Mailbox: (postData) => {
		return request('api/Index/mailbox', postData)
	},
	//公告列表
	MessageList: (postData) => {
		return request('api/Index/messageList', postData)
	},
	//公告详情
	MessageDetail: (postData) => {
		return request('api/Index/messageDetail', postData)
	},
	//订单列表
	OrderList: (postData) => {
		return request('api/Index/orderList', postData)
	},
	//我的订单列表
	myOrderList: (postData) => {
		return request('api/User/myOrderList', postData)
	},
	//订单详情
	OrderDetail: (postData) => {
		return request('api/Index/orderDetail', postData)
	},
	//订单编辑
	EditOrder: (postData) => {
		return request('api/Index/editOrder', postData)
	},
	//备忘录列表
	MemorandumList: (postData) => {
		return request('api/Index/memorandumList', postData)
	},
	//备忘录详情
	MemorandumDetail: (postData) => {
		return request('api/Index/memorandumDetail', postData)
	},
	//备忘录编辑
	EditMemorandum: (postData) => {
		return request('api/Index/editMemorandum', postData)
	},
	//添加备忘录
	AddMemorandum: (postData) => {
		return request('api/Index/addMemorandum', postData)
	},
	//添加客户
	AddCustomer: (postData) => {
		return request('api/Index/addCustomer', postData)
	}
}
